<template>
    <div>
        <van-nav-bar
  title="已为您搜索到已下内容..."
  left-text="返回"
  left-arrow
  @click-left="$router.go(-1)"
/>
  <page-selected :sea='data'></page-selected>
    </div>
</template>

<script>
import PageSelected from '@/components/PageSelected.vue'
    export default {
  components: { PageSelected },
  data() {
    return {
      data:'',
    }
  },
  props:{
    kw:{
     type:String,
     default:'',
    }
  },
      methods: {
         search(){
             let params = {"createBy":JSON.parse(sessionStorage.getItem('user')).id,"keyWord":this.kw}
             let url = '/recipes/searchRecipes'
             this.axios.post(url,params).then((res) => {
                console.log(res.data.data)
                this.data = res.data.data
             })
            },
      },
      mounted () {
        this.search()
      },
    }
</script>

<style lang="scss" scoped>

</style>